package com.wan37.logic.shop.domain.vo;

import com.wan37.logic.shop.domain.entity.CommodityDO;

import javax.persistence.Column;

/**
 * @author : luoyong
 * @date : 2020-08-10 20:51
 **/
public class CommodityVO {

    private String commodityId;
    private String shopId;
    private int number;

    public CommodityVO(){}

    public CommodityVO(CommodityDO commodityDO){
        this.commodityId = commodityDO.getCommodityId();
        this.shopId = commodityDO.getShopId();
        this.number = commodityDO.getNumber();
    }

    public CommodityVO(CommodityConfigVO commodityConfigVO) {
        this.commodityId = commodityConfigVO.getCommodityId();
        this.shopId = commodityConfigVO.getShopId();
        this.number = commodityConfigVO.getNumber();
    }

    public String getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(String commodityId) {
        this.commodityId = commodityId;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }
}
